﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MemeberMain.Master" AutoEventWireup="true" CodeBehind="MedicalResource.aspx.cs" Inherits="outREACH.MedicalResource" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
<div id="header-wrapper">
     
		<div id="header">
       
			<div id="menu">
            
				<ul>
					<li><a id="A1" href="~/HomeMem.aspx" runat="server">HOME</a></li>
					<li><a id="A2" href="~/Education/EducationMem.aspx" runat="server">EDUCATION</a></li>
					<li class="current_page_item"><a id="A3" href="~/Medical/MedicalMem.aspx" runat="server">MEDICAL</a></li>
					<li><a id="A4" href="~/Infrastructure/InfrastructureMem.aspx" runat="server">INFRA STRUCTURE</a></li>
					<li><a id="A5" href="~/Donation/DonationMem.aspx" runat="server">DONATION</a></li>
					<li><a id="A6" href="~/ContactUs_Mem.aspx" runat="server">CONTACT US</a></li>
				</ul>
               
			</div>
            
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:ImageButton ID="ImageButton1" runat="server" Height="170px" 
                ImageUrl="~/Images/Untitled-2.png" Width="175px" CausesValidation="False" 
                PostBackUrl="~/HomeMem.aspx" />
		</div>
	</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel11" runat="server" Height="1030px" Font-Size="13pt" 
        ForeColor="Black">
        <asp:Label ID="med" runat="server" Font-Bold="True" Font-Italic="True" 
            Font-Size="20pt" Text="MEDICAL - REQUESTING RESOURCES"></asp:Label>
        <br />
        <br />
        <asp:Button ID="Button1" runat="server" 
            Text="Make a New Request" onclick="Button1_Click" />
        <br />
        &nbsp;<br />
        <asp:GridView ID="GridView3" runat="server" align="center" 
            AutoGenerateColumns="False" DataSourceID="MedResourcesMain" 
            Visible="False" Height="135px" Width="610px" AllowPaging="True">
            <Columns>
                <asp:TemplateField HeaderText="More Details">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="Black" 
                            NavigateUrl='<%# "MedResourcesView.aspx?mid="+Eval("MD_ID") %>'>View</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="userName" HeaderText="UserName" 
                    SortExpression="userName"></asp:BoundField>
                <asp:BoundField DataField="medicineName" HeaderText="Resource" 
                    SortExpression="medicineName"></asp:BoundField>
                <asp:BoundField DataField="quantity" HeaderText="Quantity" 
                    SortExpression="quantity"></asp:BoundField>
                <asp:BoundField DataField="dateTime" HeaderText="Date &amp; Time Requested" 
                    SortExpression="dateTime"></asp:BoundField>
            </Columns>
            <RowStyle HorizontalAlign="Center" />
        </asp:GridView>
        <asp:GridView ID="GridView4" runat="server" align="center" 
            AutoGenerateColumns="False" DataSourceID="MedResourcesMain" 
            Visible="False" Height="135px" Width="610px" AllowPaging="True">
            <Columns>
                <asp:BoundField DataField="userName" HeaderText="UserName" 
                    SortExpression="userName"></asp:BoundField>
                <asp:BoundField DataField="medicineName" HeaderText="Resource" 
                    SortExpression="medicineName"></asp:BoundField>
                <asp:BoundField DataField="quantity" HeaderText="Quantity" 
                    SortExpression="quantity"></asp:BoundField>
                <asp:BoundField DataField="dateTime" HeaderText="Date &amp; Time Requested" 
                    SortExpression="dateTime"></asp:BoundField>
            </Columns>
            <RowStyle HorizontalAlign="Center" />
        </asp:GridView>
        <br />
        <br />
        <br />
        <br />
        <asp:ObjectDataSource ID="MedResourcesMain" runat="server" 
            SelectMethod="GetMedResource" TypeName="outREACH.MedResource">
        </asp:ObjectDataSource>
    </asp:Panel>
</asp:Content>
